<!-- 
 * 科技政策编辑
 * @author: 
 * @since: 2022-06-08
 * add.vue
-->
<template>
  <div class="scienceTechnology-edit-container">
    <policyAddEditCom :isType="2"></policyAddEditCom>
  </div>
</template>

<script setup>

import { onMounted, onUnmounted } from 'vue';
import { useRouter } from 'vue-router';
import { useStore } from 'vuex';
const router = useRouter();
const store = useStore();

onMounted(() => {
  const level = router.currentRoute.value.meta.level
  store.dispatch('setting/setRouterCut', level);

})
onUnmounted(() => {
  store.dispatch('setting/setRouterCut', 2);
})

</script>

<style lang="scss" scoped></style>